/* common */
.ke-inline-block {
	display: -moz-inline-stack;
	display: inline-block;
	vertical-align: middle;
	zoom: 1;
	*display: inline;
}
.ke-clearfix {
	zoom: 1;
}
.ke-clearfix:after {
	content: ".";
	display: block;
	clear: both;
	font-size: 0;
	height: 0;
	line-height: 0;
	visibility: hidden;
}
.ke-shadow {
	background-color: #fff;
	box-shadow: 1px 1px 3px #A0A0A0;
	-moz-box-shadow: 1px 1px 3px #A0A0A0;
	-webkit-box-shadow: 1px 1px 3px #A0A0A0;
	filter: progid:DXImageTransform.Microsoft.Shadow(color='#A0A0A0', Direction=135, Strength=3);
}
.ke-menu a,
.ke-menu a:hover,
.ke-dialog a,
.ke-dialog a:hover {
	color: #337FE5;
	text-decoration: none;
}

/* 整体框架 */
.ke-container {
	display: block;
	border: 1px solid #CCC;
	background-color: #FFF;
	overflow: hidden;
	margin: 0;
	padding: 0;
}

/* 顶部工具条 */
.ke-toolheader{
	text-align: center;
	background-color: #fff;
	border-bottom: 1px solid #e2e2e2;
}
.ke-toolbar {
	text-align: left;
	padding: 0 2px 3px 2px;
	text-align: left;
	overflow: hidden;
	zoom: 1;
}
.ke-toolbar .ke-outline {
	margin: 3px 1px 0 1px;
    padding:5px;
	font-size: 0;
	line-height: 0;
	overflow: hidden;
	cursor: pointer;
	display: block;
	float: left;
	border-radius: 3px;
}
.ke-toolbar .ke-on {
	background:#E6E6E6;
}
.ke-toolbar .ke-selected {
	background: #DEDEDE;
}
.ke-toolbar .ke-outline:active{
	background:rgb(219, 219, 219);
}
.ke-toolbar .ke-separator {
	height:20px; /*ke-toolbar-icon:height*/
	margin: 6px 2px 0 2px; /*ke-outline:margin+padding*/
	border-left:1px solid #ccc;
	border-right: 1px solid #fff;
	border-top:0;
	border-bottom:0;
	width: 0;
	font-size: 0;
	line-height: 0;
	overflow: hidden;
	display: block;
	float: left;
}
/*全屏*/
.ke-container-full{
	border-top:0;
}
.ke-container-full .ke-toolbar{
	display: inline-block;
	*display: inline;
	zoom: 1;
}


/*换行*/
.ke-toolbar .ke-hr {
	overflow: hidden;
	height: 1px;
	clear: both;
}
.ke-toolbar-icon {
	font-size: 0;
	line-height: 0;
	overflow: hidden;
	display: block;
	width: 16px;
	height: 16px;
}
.ke-toolbar .ke-disabled {
	cursor: default;
}

/* 编辑区 */
.ke-edit {
	padding: 0;
}
.ke-edit-iframe,
.ke-edit-textarea {
	border: 0;
	margin: 0;
	padding: 0;
	overflow: auto;
}
.ke-edit-textarea {
	font: 12px/1.5 "Consolas", "Monaco", "Bitstream Vera Sans Mono", "Courier New", Courier, monospace;
	color: #000;
	overflow: auto;
	resize: none;
}
.ke-edit-textarea:focus {
	outline: none;
}

/* 底部拖拽条 */
.ke-statusbar {
	position: relative;
	font-size: 0;
	line-height: 0;
	*height: 11px;
	overflow: hidden;
	text-align: center;
	cursor: s-resize;
}
.ke-statusbar-center-icon {
	background-position: -0px -754px;
	width: 15px;
	height: 11px;
}
.ke-statusbar-right-icon {
	position: absolute;
	right: 0;
	bottom: 0;
	cursor: se-resize;
	background-position: -5px -741px;
	width: 11px;
	height: 11px;
}

/* dialog 按钮元素 */
.ke-button-outer {
	display: -moz-inline-stack;
	display: inline-block;
	vertical-align: middle;
	zoom: 1;
	*display: inline;
}
.ke-button {
	font-family: "sans serif",tahoma,verdana,helvetica;
    border: 0 none;
    color: #333;
    font-size: 12px;
    text-decoration: none;
    height: 32px;
    border-radius: 4px;
    cursor: pointer;
	background: #F0F0F0;
	padding: 0 20px;
	*padding:0 6px;
}
.ke-button:focus{
	outline: none;
}
.ke-button:active{
	background: #d6d6d6;
}
.ke-dialog-no .ke-button{
	color:#7d7d7d
}

/* dialog 基础框架 */
.ke-dialog {
	position: absolute;
	margin: 0;
	padding: 0;
}
.ke-dialog-mask {
	background-color:#FFF;
	filter:alpha(opacity=50);
	opacity:0.5;
}
.ke-dialog-content {
	background-color: #FFF;
	width: 100%;
	height: 100%;
	color: #333;
	border: 1px solid #A0A0A0;
}
.ke-dialog-shadow {
	position: absolute;
	z-index: -1;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	box-shadow: 3px 3px 7px #999;
	-moz-box-shadow: 3px 3px 7px #999;
	-webkit-box-shadow: 3px 3px 7px #999;
	filter: progid:DXImageTransform.Microsoft.Blur(PixelRadius='3', MakeShadow='true', ShadowOpacity='0.4');
	background-color: #F0F0EE;
}
.ke-dialog-header {
	border:0;
	margin:0;
	padding:0 16px;
	height:40px;
	font: 18px/40px "sans serif",tahoma,verdana,helvetica;
	text-align: left;
	color: #222;
	cursor: move;
}
.ke-dialog-icon-close {
	display: block;
    cursor: pointer;
	background: url(./../default.png) no-repeat scroll 0px -688px;
	width: 16px;
	height: 16px;
	position: absolute;
	right: 16px;
    top: 12px;
    transform: scale(1.26);
	opacity: .6;
	border-radius: 2px;
}
.ke-dialog-icon-close:hover{
	background-color: #ddd;
}
.ke-dialog-icon-close:active{
	opacity: .75;
	background-color: #bbb;
}
.ke-dialog-body {
	font: 13px/1.5 "sans serif",tahoma,verdana,helvetica;
	text-align: left;
	overflow: hidden;
	width: 100%;
	color:#666;
}
.ke-dialog-body .ke-button{
	height: 30px;
}
.ke-dialog-footer {
	font: 12px/1 "sans serif",tahoma,verdana,helvetica;
	text-align: right;
	padding:6px 15px 12px 0;
	background-color: #FFF;
}
.ke-dialog-footer .ke-button{
	margin:0 5px;
	font-size: 14px;
	background-image: linear-gradient(to bottom, #efefef, #dadada);
}
.ke-dialog-footer .ke-button:active{
	background: #d6d6d6;
}

/*dialog 常用元素*/
.ke-dialog .ke-header {
	width: 100%;
	margin-bottom: 10px;
}
.ke-dialog .ke-header .ke-left {
	float: left;
}
.ke-dialog .ke-header .ke-right {
	float: right;
}
.ke-dialog .ke-header label {
	margin-right: 0;
	cursor: pointer;
	font-weight: normal;
	display: inline;
	vertical-align: top;
}
.ke-dialog-body .ke-preview {
	display: block;
	width: 408px;
	height: 260px;
	font-family: "sans serif",tahoma,verdana,helvetica;
	font-size: 12px;
}
.ke-dialog-body .ke-textarea {
	display: block;
	width: 408px;
	height: 260px;
	font-family: "sans serif",tahoma,verdana,helvetica;
	font-size: 12px;
	border-color: #848484 #E0E0E0 #E0E0E0 #848484;
	border-style: solid;
	border-width: 1px;
}
.ke-dialog-body .ke-textarea-code{
	font-family: Consolas,Monaco,'Andale Mono','Ubuntu Mono',monospace;
	font-size:14px;
	background-color: #FBF9F8;
}
.ke-dialog-body img {
	display: -moz-inline-stack;
	display: inline-block;
	vertical-align: middle;
	zoom: 1;
	*display: inline;
}
/*dialog form 元素*/
.ke-dialog-row {
	margin-bottom: 14px;
}
.ke-dialog-row label {
	width: 56px;
	margin-right: 10px;
	cursor: pointer;
	display: -moz-inline-stack;
	display: inline-block;
	vertical-align: middle;
	zoom: 1;
	*display: inline;
}
.ke-dialog-body textarea:focus,
.ke-dialog-body input:focus,
.ke-dialog-body select:focus {
	outline: none;
}
.ke-dialog-body textarea {
	display: block;
	overflow: auto;
	padding: 0;
	resize: none;
}
.ke-dialog-body select {
	display: -moz-inline-stack;
	display: inline-block;
	*display: inline;
	vertical-align: middle;
	zoom: 1;
	width: auto;    
	height: 28px;
	padding: 0 4px;
	border:1px solid #ccc;
}
.ke-dialog-body input[type="text"]{
	background-color:#fff;
	font-family: "sans serif",tahoma,verdana,helvetica;
	font-size: 13px;
	height: 26px;
	line-height: 26px;
	padding: 0 4px;
	vertical-align: middle;
	display: -moz-inline-stack;
	display: inline-block;
	*display: inline;
	zoom: 1;
	border:1px solid #ccc;
}
.ke-dialog-body input[type="text"]:disabled{
	color:#999;
}
.ke-input-number {
	width: 50px;
}
.ke-input-color {
	background-color: #e4e4e4;
	font-size: 12px;
	width: 60px;
	height: 28px;
	line-height:28px;
	padding-left: 5px;
	overflow: hidden;
	cursor: pointer;
	vertical-align: middle;
	display: -moz-inline-stack;
	display: inline-block;
	zoom: 1;
	*display: inline;
}

/* 点按钮下拉菜单 & 右键菜单*/
.ke-menu {
	background: #fff;
	color: #222222;
	padding:4px 0;
	font-family: "sans serif",tahoma,verdana,helvetica;
	font-size: 12px;
	text-align: left;
	overflow: hidden;
	user-select:none;
	*border:1px solid #ccc;
}
.ke-menu-clear{
	padding: 0;
}
.ke-menu-item {
	color: #222222;
	height: 28px;
	overflow: hidden;
	cursor: pointer;
}
.ke-menu-separator {
	margin: 2px;
	height: 0;
	line-height: 0;
	overflow: hidden;
	border-top:1px solid #e3e3e3;
}
.ke-menu-item-left {
	width: 22px;
	padding-left: 5px;
	text-align: center;
	overflow: hidden;
}
.ke-menu-item-center {
	width: 0;
	height: 28px;
	border-left: 1px solid #E3E3E3;
	border-top: 0;
	border-bottom: 0;
}
.ke-menu-item-right {
	border: 0;
	padding: 0 0 0 5px;
	line-height:28px;
	text-align: left;
	overflow: hidden;
}
.ke-menu-item-on {
	background-color: #E9EFF6;
}
.ke-menu-item-center-on {
	border-left:1px solid #c2cdda;
}
.ke-menu-item-checked {
	opacity: .5;
}

/* 颜色选择器 */
.ke-colorpicker {
	border: 1px solid #A0A0A0;
	background-color: #fff;
	color: #222222;
	padding: 2px;
}
.ke-colorpicker-table {
	border:0;
	margin:0;
	padding:0;
	border-collapse: separate;
}
.ke-colorpicker-cell-top {
	font-family: "sans serif",tahoma,verdana,helvetica;
	font-size: 12px;
	line-height: 24px;
	border: 1px solid #ffffff;
	cursor: pointer;
	text-align: center;
}
.ke-colorpicker-cell {
	font-size: 0;
	line-height: 0;
	cursor: pointer;
	border: 1px solid #ffffff;
}
.ke-colorpicker-cell-color {
	width:18px;
	height:18px;
	margin: 1px;
}
.ke-colorpicker-cell-on {
	border: 1px solid #5690D2;
}
.ke-colorpicker-cell-selected {
	border: 1px solid #2446AB;
}

/*快速插入 Table*/
.ke-plugin-qtable{
	width: 150px;
	margin: 0;
    padding: 0;
}
.ke-plugin-qtable-table{
	width: 100%;
	height: 150px;
    border-right: 1px solid #e4e4e4;
	border-bottom: 1px solid #e4e4e4;
	position: relative;
}
.ke-plugin-qtable ul{
	width: 100%;
	height: 100%;
	position: absolute;
	z-index: 1;
	list-style: none;
    padding: 0;
    margin: 0;
}
.ke-plugin-qtable li{
    float: left;
	width: 14px;
    height: 14px;
    border-left: 1px solid #e4e4e4;
	border-top: 1px solid #e4e4e4;
	border-color: rgba(0,0,0,.2);
}
.ke-plugin-qtable-selected{
	position: absolute;
	background: #5690D2;
	opacity: .5;
}
.ke-plugin-qtable-status{
	width: 100%;
    height: 32px;
}
.ke-plugin-qtable-status b{
	float: left;
    color: #999;
    margin: 8px 0 0 5px;
    font-weight: normal;
}
.ke-plugin-qtable-status button{
	border: none;
    background: none;
    float: right;
    padding: 2px;
    margin: 4px 3px 0 0;
	color: #547886;
	*padding-right:0;
}

/* 插入表情 */
.ke-plugin-emoticons {
	width: 400px;
	*border:1px solid #A0A0A0;
}
.ke-em-tab {
	font: 12px/1 "sans serif",tahoma,verdana,helvetica;
    border-top: 1px solid #ccc;
    background: #FDFDFD;
	padding-left: 5px;
	width: 100%;
}
.ke-em-tab ul  {
	list-style-image:none;
	list-style-position:outside;
	list-style-type:none;
	margin:0;
	padding:0;
}
.ke-em-tab li {
    position: relative;
    padding: 0 21px;
    float: left;
    line-height: 30px;
    text-align: center;
    color: #555555;
    cursor: pointer;
}
.ke-em-tab li.on {
	background-color: #eaeaea;
	color: #000;
}
.ke-em-tab li.selected {
    margin-top: -1px;
    padding: 0 20px;
    color: #000;
    cursor: default;
    background-color: #FFF;
    border: 1px solid #ccc;
    border-bottom: 0;
    border-top-color: #fff;
}
.ke-em-group{
	width:100%;
	height: 290px;
	overflow-x: hidden;
	overflow-y: auto;
	*overflow-y: scroll;
}
.ke-em-group::-webkit-scrollbar {
	width: 6px;
	background-color: #F5F5F5;
}
.ke-em-group::-webkit-scrollbar-track {
	background-color: #F5F5F5;
}
.ke-em-group::-webkit-scrollbar-thumb{
	background-color: #cecece;
}
.ke-em-list{
	padding-bottom:10px;
	*padding-right:17px;
}
.ke-em-table{
	width: 100%;
	table-layout: fixed;
	border-collapse: collapse;
}
.ke-em-table td{
	border:1px #eaeaea solid;
    text-align: center;
	vertical-align: middle;
	line-height: 0;
	overflow: hidden;
}
.ke-em-table td:hover{
	background: #E9EFF6;
}
.ke-em-table td img{
	max-width: 100%;
	max-height: 100%;
}
/*qq表情*/
.ke-em-table0 td{
	height: 38px; 
}
.ke-em-table0 .ke-qqimg {
	display:block;
	background-repeat:no-repeat;
	overflow:hidden;
	width:24px;
	height:24px;
	margin: 0 auto;
	padding: 0;
	border: 0;
}
/*emoji字符表情*/
.ke-em-table1 td{
	height: 38px; 
	font-size: 22px;
    line-height: 38px;
}
.ke-em-table1 td span{
	cursor: default;
}


/* 弹窗中的上传文件按钮 */
.ke-upload-button {
	position: relative;
	margin-left:5px;
}
.ke-upload-area {
	position: absolute;
	width: 100%;
	height: 100%;
	left:0;
	top:0;
	margin: 0;
	padding: 0;
	overflow: hidden;
}
.ke-upload-area .ke-upload-file {
	position: absolute;
	font-size: 60px;
	top: -30px;
	right: -20px;
	padding: 0;
	margin: 0;
	border: 0 none;
	opacity: 0;
	filter: alpha(opacity=0);
}

/* 插入图片的弹窗元素 ie8不支持svg, 有以纯背景显示了*/
.ke-img-svg{
	display: inline-block;
	vertical-align: middle;
	width:26px;
	height:26px;
	margin-right:5px;
	background: #e8e8e8;
	border-radius: 4px;
	overflow: hidden;
}
.ke-img-svg svg{
	background: #fff;
	padding:4px;
	fill:#999;
}
.ke-img-svg svg:hover{
	fill:#666;
}
.ke-img-svgon{
	background: #adadad;
}
.ke-img-svgon svg{
	background: #e8e8e8;
}

/*弹窗中上传按钮 form 和 上传 Loading*/
.ke-dialog-loading {
	position: absolute;
	top: 0;
	left: 1px;
	z-index: 1;
	text-align: center;
	color:#999;
}

/* 弹窗中的文件管理器 */
.ke-plugin-filemanager{
	padding:20px;
}
.ke-plugin-filemanager-header {
	width: 100%;
	margin-bottom:5px;
}
.ke-plugin-filemanager-header .ke-left{
	margin-top:4px;
}
.ke-plugin-filemanager-body {
	background-color:#FFFFFF;
	border-color: #848484 #E0E0E0 #E0E0E0 #848484;
	border-style: solid;
	border-width: 1px;
	height: 370px;
	overflow-x: hidden;
	overflow-y: auto;
}
.ke-plugin-filemanager-body svg{
	vertical-align: middle;
	fill: #848484;
}
.ke-plugin-filemanager-body .ke-table {
	width: 100%;
	border: 0;
	margin: 0;
	padding: 0;
	border-collapse: separate;
}
.ke-plugin-filemanager-body .ke-table .ke-cell {
	margin: 0;
	padding:5px 0;
	border: 0;
}
.ke-plugin-filemanager-body .ke-table .ke-name {
	padding-left:10px;
	text-align: left;
	cursor: pointer;
}
.ke-plugin-filemanager-body .ke-table .ke-size {
	width: 15%;
	text-align: left;
}
.ke-plugin-filemanager-body .ke-table .ke-datetime {
	width: 30%;
	text-align: center;
}
.ke-plugin-filemanager-body .ke-item {
	margin: 5px;
}
.ke-plugin-filemanager-body .ke-photo {
    border: 1px solid #DDDDDD;
    background-color: #FFFFFF;
    padding: 5px;
	cursor: pointer;
}
.ke-plugin-filemanager-body .ke-photo img{
	max-width: 80px;
	max-height: 80px;
}
.ke-plugin-filemanager-body .ke-name {
	width: 100px;
	text-align: center;
	overflow: hidden;
	height:16px;
}
.ke-plugin-filemanager-body .ke-on {
	background-color: #E9EFF6;
}


/* icons */
.ke-toolbar-icon,
.ke-statusbar-center-icon,
.ke-statusbar-right-icon{
	background-image: url(./../default.png);
	background-repeat: no-repeat;
}
.ke-icon-source {
	background-position: 0px 0px;
}
.ke-icon-preview {
	background-position: 0px -16px;
}
.ke-icon-print {
	background-position: 0px -33px;
}
.ke-icon-undo {
	background-position: 0px -48px;
}
.ke-icon-redo {
	background-position: 0px -64px;
}
.ke-icon-cut {
	background-position: 0px -80px;
}
.ke-icon-copy {
	background-position: 0px -96px;
}
.ke-icon-paste {
	background-position: 0px -112px;
}
.ke-icon-selectall {
	background-position: 0px -128px;
}
.ke-icon-justify{
	background-position: 0px -1263px;
}
.ke-icon-justifyleft {
	background-position: 0px -144px;
}
.ke-icon-justifycenter {
	background-position: 0px -160px;
}
.ke-icon-justifyright {
	background-position: 0px -176px;
}
.ke-icon-justifyfull {
	background-position: 0px -192px;
}
.ke-icon-insertolist {
	background-position: 0px -1279px;
}
.ke-icon-insertorderedlist {
	background-position: 0px -208px;
}
.ke-icon-insertunorderedlist {
	background-position: 0px -224px;
}
.ke-icon-indent {
	background-position: 0px -240px;
}
.ke-icon-outdent {
	background-position: 0px -256px;
}
.ke-icon-subscript {
	background-position: 0px -272px;
}
.ke-icon-superscript {
	background-position: 0px -288px;
}
.ke-icon-date {
	background-position: 0px -304px;
	width: 25px;
	height: 16px;
}
.ke-icon-time {
	background-position: 0px -320px;
	width: 25px;
	height: 16px;
}
.ke-icon-formatblock {
	background-position: 0px -336px;
	width: 25px;
	height: 16px;
}
.ke-icon-fontname {
	background-position: 0px -352px;
	width: 21px;
	height: 16px;
}
.ke-icon-fontsize {
	background-position: 0px -368px;
	width: 23px;
	height: 16px;
}
.ke-icon-forecolor {
	background-position: 0px -384px;
	width: 20px;
	height: 16px;
}
.ke-icon-hilitecolor {
	background-position: 0px -400px;
	width: 23px;
	height: 16px;
}
.ke-icon-bold {
	background-position: 0px -416px;
}
.ke-icon-italic {
	background-position: 0px -432px;
}
.ke-icon-underline {
	background-position: 0px -448px;
}
.ke-icon-strikethrough {
	background-position: 0px -464px;
}
.ke-icon-removeformat {
	background-position: 0px -480px;
}
.ke-icon-image {
	background-position: 0px -495px;
}
.ke-icon-flash {
	background-position: 0px -512px;
}
.ke-icon-media {
	background-position: 0px -528px;
}
.ke-icon-div {
	background-position: 0px -544px;
}
.ke-icon-formula {
	background-position: 0px -576px;
}
.ke-icon-hr {
	background-position: 0px -592px;
}
.ke-icon-emoticons {
	background-position: 0px -608px;
}
.ke-icon-link {
	background-position: 0px -624px;
}
.ke-icon-unlink {
	background-position: 0px -640px;
}
.ke-icon-fullscreen {
	background-position: 0px -656px;
}
.ke-icon-about {
	background-position: 0px -672px;
}
.ke-icon-plainpaste {
	background-position: 0px -704px;
}
.ke-icon-wordpaste {
	background-position: 0px -720px;
}
.ke-icon-table {
	background-position: 0px -768px;
}
.ke-icon-tablemenu {
	background-position: 0px -768px;
}
.ke-icon-tableinsert {
	background-position: 0px -784px;
}
.ke-icon-tableremove {
	background-position: 0px -800px;
}
.ke-icon-tablecolinsertleft {
	background-position: 0px -816px;
}
.ke-icon-tablecolinsertright {
	background-position: 0px -832px;
}
.ke-icon-tablerowinsertabove {
	background-position: 0px -848px;
}
.ke-icon-tablerowinsertbelow {
	background-position: 0px -864px;
}
.ke-icon-tablecoldelete {
	background-position: 0px -880px;
}
.ke-icon-tablerowdelete {
	background-position: 0px -896px;
}
.ke-icon-tablecellprop {
	background-position: 0px -912px;
}
.ke-icon-tablerowprop {
	background-position: 0px -1248px;
}
.ke-icon-tableprop {
	background-position: 0px -928px;
}
.ke-icon-checked {
	background-position: 0px -944px;
}
.ke-icon-code {
	background-position: 0px -960px;
}
.ke-icon-map {
	background-position: 0px -976px;
}
.ke-icon-baidumap {
	background-position: 0px -976px;
}
.ke-icon-lineheight {
	background-position: 0px -992px;
}
.ke-icon-clearhtml {
	background-position: 0px -1008px;
}
.ke-icon-pagebreak {
	background-position: 0px -1024px;
}
.ke-icon-insertfile {
	background-position: 0px -1040px;
}
.ke-icon-quickformat {
	background-position: 0px -1056px;
}
.ke-icon-template {
	background-position: 0px -1072px;
}
.ke-icon-tablecellsplit {
	background-position: 0px -1088px;
}
.ke-icon-tablerowmerge {
	background-position: 0px -1104px;
}
.ke-icon-tablerowsplit {
	background-position: 0px -1120px;
}
.ke-icon-tablecolmerge {
	background-position: 0px -1136px;
}
.ke-icon-tablecolsplit {
	background-position: 0px -1152px;
}
.ke-icon-anchor {
	background-position: 0px -1168px;
}
.ke-icon-search {
	background-position: 0px -1184px;
}
.ke-icon-new {
	background-position: 0px -1200px;
}
.ke-icon-specialchar {
	background-position: 0px -1216px;
}
.ke-icon-multiimage {
	background-position: 0px -1232px;
}
